/*
 * @Date: 2024-11-22 17:17:43
 * @Author: LiSong
 * @LastEditors: g05047
 * @LastEditTime: 2025-02-19 10:04:44
 * @Description: 
 */
import * as EleComps from 'element-plus'

import { IconSelector } from '@/components/rk-icon/index.js'

import InputRows from './input-rows'
import InputColor from './input-color'
import InputCards from './input-cards'
import SeriesLine from './series-line'
import SeriesTask from './series-task'
import InputDbsource from './input-dbsource'
import SeriesPie from './series-pie'

import InputRoutes from './input-routes'

import Select from './select'
import SelectRoutes from './select-routes'

import CodeStudio from './code-studio'
import EventOnClick from './events/EventOnClick.vue'

export function setupAttrEditors(pluginManager) {
  const compArray = [
    { type: 'input', component: EleComps.ElInput },
    { type: 'input-icon', component: IconSelector },
    { type: 'number', component: EleComps.ElInputNumber },
    { type: 'switch', component: EleComps.ElSwitch },
    { type: 'slider', component: EleComps.ElSlider },
    { type: 'event-onclick', component: EventOnClick },
    InputRows,
    InputColor,
    InputCards,
    InputRoutes,
    InputDbsource,
    Select,
    SelectRoutes,
    CodeStudio,
    SeriesLine,
    SeriesTask,
    SeriesPie,
  ]
  compArray.forEach(item => {
    pluginManager.registerAttrEditor(item)
  })
}